package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSUserBean implements GSBaseBean{
	
	public String id;
	public String code;
	public String password;
	public String warehouseCode;
	public String warehouseName;
	public String name;
	public String tel;
	public String mobilePhone;
	public String remark;
	public String status;
	
	

	public Object process(ResultSet aResultSet) throws SQLException {
		GSUserBean tGSUserBean = new GSUserBean();
		tGSUserBean.id = aResultSet.getString("ID").trim() ;
		tGSUserBean.code = aResultSet.getString("CODE") == null?"" :aResultSet.getString("CODE").trim();
		tGSUserBean.password = aResultSet.getString("PASSWORD") == null?"" :aResultSet.getString("PASSWORD").trim();
		tGSUserBean.warehouseCode = aResultSet.getString("WAREHOUSE_CODE") == null?"" :aResultSet.getString("WAREHOUSE_CODE").trim();
		tGSUserBean.warehouseName = aResultSet.getString("WAREHOUSE_NAME") == null?"" :aResultSet.getString("WAREHOUSE_NAME").trim();
		tGSUserBean.name = aResultSet.getString("NAME") == null?"" :aResultSet.getString("NAME").trim();
		tGSUserBean.tel = aResultSet.getString("TEL") == null?"" :aResultSet.getString("TEL").trim();
		tGSUserBean.mobilePhone = aResultSet.getString("MOBILE_PHONE") == null?"" :aResultSet.getString("MOBILE_PHONE").trim();
		tGSUserBean.remark = aResultSet.getString("REMARK") == null?"" :aResultSet.getString("REMARK").trim();
		tGSUserBean.status = aResultSet.getString("STATUS") == null?"" :aResultSet.getString("STATUS").trim();
		return tGSUserBean;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
